apexd: fix bug in getAllPackages in case samegrade of system APEX In case of samegrade of a system apex, an apex on /data partition will be correctly reported by getAllPackages as the active one. Test: atest apexservice_test Test: atest CtsStagedInstallHostTestCases Test: adb pull /system/apex/com.google.android.tzdata.apex /tmp/tz.apex Test: adb install /tmp/tz.apex && adb reboot Test: adb shell cmd apexservice getAllPackages Test: adb shell cmd apexservice getActivePackages Change-Id: Ib20ddef5a1f61837799a61bd429afe5ff4bfd6a9 Merged-In: I828c87510cfac0ae14ba5c8bf949aa259182fe4a Bug: 140229069
1 file changed